package com.jhgsys.internal.sypq.service;

import com.jhgsys.internal.sypq.entity.Calendar;
import com.jhgsys.internal.common.entity.QueryRequest;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 日历管理 Service接口
 *
 * @author ganjun
 * @date 2024-11-21 16:56:51
 */
public interface ICalendarService extends IService<Calendar> {
    /**
     * 查询（分页）
     * @author ganjun
     * @date 2024-11-21 16:56:51
     * @param request QueryRequest
     * @param calendar calendar
     * @return IPage<Calendar>
     */
    IPage<Calendar> findCalendarPage(QueryRequest request, Calendar calendar);

    /**
     * 查询（所有）
     * @author ganjun
     * @date 2024-11-21 16:56:51
     * @param calendar calendar
     * @return List<Calendar>
     */
    List<Calendar> findCalendarList(Calendar calendar);

    /**
    * 根据ID查询
    * @author ganjun
    * @date 2024-11-21 16:56:51
    * @param id
    * @return Calendar
    */
    Calendar findCalendarById(String id);

    /**
     * 新增
     * @author ganjun
     * @date 2024-11-21 16:56:51
     * @param calendar calendar
     */
    boolean createCalendar(Calendar calendar);

    /**
     * 修改
     * @author ganjun
     * @date 2024-11-21 16:56:51
     * @param calendar calendar
     */
    boolean updateCalendar(Calendar calendar);

    /**
     * 逻辑删除
     * @author ganjun
     * @date 2024-11-21 16:56:51
     * @param calendar calendar
     * @param calendarIds calendarIds
     */
    boolean deleteCalendar(Calendar calendar, String calendarIds);

    /**
    * 物理删除
    * @author ganjun
    * @date 2024-11-21 16:56:51
    * @param calendarIds calendarIds
    */
    boolean physicallyDeleteCalendar(String calendarIds);
}
